home *** CD-ROM | disk | FTP | other *** search
/ Megahits 5 / Megahits 5 (1994)(GTI - Rhein-Main-Soft)(DE)(Disc 2 of 2)[!].iso / archive / show / jmore03.lzh / jmoresrc.LZH / jmore.h < prev    next >
C/C++ Source or Header  |  1992-10-18  |  2KB  |  82 lines

  1. /*    jmore.h
  2.  */
  3.  
  4. #define    WIDTH    640    /* high resolution width */
  5. #define    HEIGHT    400    /* interlace screen height */
  6. #define    DEPTH    4    /* 16 colors available */
  7.  
  8. struct    NewScreen    ScrnDefn = {
  9.     0, 0,    /* top-left corner position */
  10.     WIDTH, HEIGHT, DEPTH,    /* screen size & number of planes */
  11.     -1, -1,    /* default DetailPen & BlockPen */
  12.     HIRES | LACE,    /* display screen mode */
  13.     CUSTOMSCREEN,    /* screen type (now, set my own screen !) */
  14.     (struct TextAttr *)NULL,    /* no special font */
  15.     (UBYTE *)"=== JMORE ===",    /* title */
  16.     (struct Gadgets *)NULL,    /* no special Gadgets */
  17.     (struct BitMap *)NULL,    /* no CustomBitMap */
  18.     };
  19.  
  20. struct    NewWindow    WindDefn = {
  21.     0, 0,    /* top-left corner of the window */
  22.     WIDTH, HEIGHT,    /* screen size */
  23.     -1, -1,    /* default DetailPen & BlockPen */
  24.     RAWKEY | MOUSEBUTTONS,    /* IDCMPflags */
  25.     SMART_REFRESH | BORDERLESS | BACKDROP | ACTIVATE,    /* set window's flags */
  26.     (struct Gadgets *)NULL,    /* no gadget */
  27.     (struct Image *)NULL,    /* no check marks */
  28.     (UBYTE *)NULL,    /* this window has no title */
  29.     (struct Screen *)NULL, /* now, no screen. but attach later ! */
  30.     (struct BitMap *)NULL,    /* no BitMap */
  31.     0, 0,    /* minimum window size */
  32.     -1, -1,    /* maximum window size (set default) */
  33.     CUSTOMSCREEN,    /* screen type (set my own screen) */
  34.     };
  35.  
  36. #define    STARTUP    "s:jmore-startup"
  37. #define    COMMENT_MARK    ';'
  38.  
  39. enum    STUP {
  40.     REGULAR, TAB_WIDTH,
  41.     TOTAL_STARTUP,
  42.     };
  43.  
  44. char    *startup[TOTAL_STARTUP] = {
  45.     "REGULAR",
  46.     "TAB",
  47.     };
  48.  
  49. #define    TABSPC    8
  50. #define    KNJ_ILGL    0x80
  51.  
  52. #define    LF    '\n'
  53. #define    CR    '\r'
  54. #define    TAB    '\t'
  55. #define    CPMEOF    0x1a
  56. #define    FILEEND    CPMEOF
  57. #define    NUL    '\0'
  58. #define    SPC    ' '
  59.  
  60. #define    BUFFSIZE    16384
  61. #define    STRBUFSIZE    80
  62. #define    TOTAL_LINES    (HEIGHT/FONT_SIZE - 1)
  63.  
  64. #define    COPYRIGHT    "Ver.0.03 Copyright (c) H.Ohkubo 1992"
  65. #define    END_MESSAGE    ""
  66. #define    ERROR_MESSAGE    "usage: jmore input_file_name"
  67.  
  68. #define    MORE_MES    " --- MORE (%s) --- "
  69. #define    FILE_END_MES    " --- [EOF] (%s) --- "
  70.  
  71. /* RAWKEY code */
  72. #define    QUIT_PRG    0x10    /* 'Q' key */
  73. #define    LINE_SCROLL    0x44    /* CR key */
  74. #define    BACK_LINE    0x19    /* 'P' key */
  75. #define    PAGE_SCROLL    0x40    /* Space bar */
  76. #define    BACK_SCROLL    0x41    /* BS key */
  77.  
  78. #define    QUIT    (-1)
  79. #define    NORMAL    0
  80.  
  81. #define    JMOREPORT    "jmore.port"
  82.